package com.ruoyi.web.nywjz.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 电箱状态对象 electric_box
 *
 * @author ruoyi
 * @date 2025-09-19
 */
public class ElectricBox extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 电箱名称 */
    @Excel(name = "电箱名称")
    private String name;

    /** 电箱mac */
    @Excel(name = "电箱mac")
    private String mac;

    /** 心跳时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "心跳时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date heartbeatTime;

    /** 在线状态 */
    @Excel(name = "在线状态")
    private String onlineStatus;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 摄像头接线方式  AC  NO */
    @Excel(name = "摄像头接线方式  AC  NO")
    private String connector;

    /** 摄像头接线端口 */
    @Excel(name = "摄像头接线端口")
    private Long connectorIndex;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public void setMac(String mac)
    {
        this.mac = mac;
    }

    public String getMac()
    {
        return mac;
    }

    public void setHeartbeatTime(Date heartbeatTime)
    {
        this.heartbeatTime = heartbeatTime;
    }

    public Date getHeartbeatTime()
    {
        return heartbeatTime;
    }

    public void setOnlineStatus(String onlineStatus)
    {
        this.onlineStatus = onlineStatus;
    }

    public String getOnlineStatus()
    {
        return onlineStatus;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }

    public void setConnector(String connector)
    {
        this.connector = connector;
    }

    public String getConnector()
    {
        return connector;
    }

    public void setConnectorIndex(Long connectorIndex)
    {
        this.connectorIndex = connectorIndex;
    }

    public Long getConnectorIndex()
    {
        return connectorIndex;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("mac", getMac())
            .append("heartbeatTime", getHeartbeatTime())
            .append("onlineStatus", getOnlineStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("deptId", getDeptId())
            .append("connector", getConnector())
            .append("connectorIndex", getConnectorIndex())
            .toString();
    }
}
